package com.atguigu.spzx.cart;

import com.atguigu.spzx.common.anno.EnableLoginAuth;
import com.atguigu.spzx.common.anno.EnableMyGlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//因为有mybatis和数据库依赖,但我们没用,这个类会自动组装,如果没有则会报错启动不了.
@EnableLoginAuth
@EnableMyGlobalExceptionHandler
@EnableFeignClients(value = "com.atguigu.spzx.feign.product")
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class,args);
    }
}
